package com.kymatrix.kycarbon.xsmd.system.server.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kymatrix.kycarbon.xsmd.system.server.dao.UserRoleMapper;
import com.kymatrix.kycarbon.xsmd.system.server.model.entity.UserRoleRelationEntity;
import com.kymatrix.kycarbon.xsmd.system.server.service.IUserRoleRelationService;
import java.util.List;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

@Service
@Primary
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRoleRelationEntity>
        implements IUserRoleRelationService {
    
    @Override
    public void deleteByUserId(String userId) {
        this.baseMapper.deleteByUserId(userId);
    }

    @Override
    public List<UserRoleRelationEntity> selectByUserId(String userId) {
        return this.baseMapper.selectByUserId(userId);
    }

}
